package MV_BMP// ActionScript file
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;

	/**
	 *由矢量图转换而成的位图类 
	 * @author 葛增文
	 * 
	 */	
	public class DisplayObject_BMP extends Bitmap
	{
		public function DisplayObject_BMP(transSprite:Sprite=null):void
		{
			if(transSprite)
			{
			    this.bitmapData=new BitmapData(transSprite.width,transSprite.height,true,0);
			    this.bitmapData.draw(transSprite);
			}
		}
		
		public function clone():DisplayObject_BMP
		{
			var returnObj:DisplayObject_BMP=new DisplayObject_BMP();
			returnObj.bitmapData=this.bitmapData;
			return returnObj;
		}
	}
}